package constants

// common server
const (
	CommonPriceKey 			= "bitkop:common:price"
)

// ote server
const (
	TrustQueue 				= "exchange:%s:queue"

	TrustBuyDetail			= "exchange:%s:detail:buy"
	TrustSaleDetail			= "exchange:%s:detail:sale"

	TrustWaitBuy 			= "exchange:%s:wait:buy"
	TrustWaitSale 			= "exchange:%s:wait:sale"

	TrustDepthBuy 			= "exchange:%s:depth:buy:%d"
	TrustDepthSale 			= "exchange:%s:depth:sale:%d"

	TrustOrderList 			= "exchange:%s:order:list"

	// 用户个人买卖单列表，Hash存储
	TrustUserBuyKey 		= "exchange:%s:user:buy:%d"
	TrustUserSaleKey 		= "exchange:%s:user:sale:%d"

	OteOrderList 			= "ote:%s:order:list"

	TrustFailedList 		= "exchange:%s:failed:list"
)

// kline server
const (
	KlineCacheDataKey 		= "kline:%s:data"

	KlineCacheLastKey 		= "kline:%s:last"

	KlineCacheMapKey 		= "kline:%s:map"
)

// order server
const (
	OrderLastOrderId 		= "order:query:last:id"
	OrderLatestAnalysis		= "order:%s:analysis:detail"

	OrderInfoFresh 			= "order:common:market"
	OrderTickerInfo 		= "order:common:ticker"

	// 用户的成交单
	// 历史委托
	UserHistoryTrustKey 	= "order:%s:user:%d:trust"

	// 历史委托，不保存交易对
	UserHistoryTrustWithoutCoinPairKey 	= "order:history:user:%d"

	// 历史成交
	UserHistoryOrderKey 	= "order:%s:user:%d:order"
)

